package com.sls.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sls.common.to.mq.SeckillOrderTo;
import com.sls.common.utils.PageUtils;
import com.sls.mall.order.entity.OmsOrderEntity;
import com.sls.mall.order.vo.*;

import java.util.Map;

/**
 * 订单
 *
 * @author Gesx
 * @email 759065243@qq.com
 * @date 2021-05-14 14:36:35
 */
public interface OmsOrderService extends IService<OmsOrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 订单确认页数据封装
     * @return
     */
    OrderConfirmVo confirm();

    /**
     * 订单提交
     * @param vo
     * @return
     */
    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    OmsOrderEntity getOrderByOrderSn(String orderSn);

    /**
     * 订单关闭
     * @param entity
     */
    void closeOrder(OmsOrderEntity entity);

    /**
     * 获取订单支付信息
     * @param orderSn
     * @return
     */
    PayVo getOrderPay(String orderSn);

    PageUtils listWithItem(Map<String, Object> pageMap);

    String handlePayResult(PayAsyncVo vo);

    void createSeckillOrder(SeckillOrderTo entity);

}

